package com.alibaba.cloud.client9092.service;

import com.alibaba.cloud.client9092.service.fallback.ClientFeignServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * created by wuquan at 05/08/2021
 * ^_^ ^_^
 */
@FeignClient(value = "CLIENT-9093", fallbackFactory = ClientFeignServiceFallbackFactory.class)
public interface ClientFeignService {

    @GetMapping("/get")
    public String get();


    @GetMapping("/save")
    public String save(@RequestParam("name") String name);

}
